<?php
defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' );
class Logout extends CI_Controller {
	/**
	 * 注销已登录信息
	 */
	public function index() {
		$this->load->library ( 'session' );
		$session = array(
				'username',
				'uid'
		);
		$this->session->unset_userdata ( $session );
		redirect (  );
	}
}